
let empytFn = () => {
    let empty = {}
    let flag;
    flag = true
    for(let k in empty) {
        flag = false;
    }
}

let empytFn2 = () => {
    let empty = {a:1}
    let flag;
    flag = true
    if(Object.keys(empty).length > 0) {
        flag = false;
    }
    console.log(flag)
}
empytFn2()